 <#setting time_zone="${timeZone}" >
<link href="${rc.getContextPath()}/manage/css/dwzCustomCss/dwz.custom.css?v=${ver}" rel="stylesheet" type="text/css">
<form method="post" action="${rc.getContextPath()}/manage/role/saveRole" class=" pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
    <div class="pageContent">
        <div class="pageFormContent">
            <fieldset>
                <input type="hidden" name="navTabId" value="${navTabId!''}"> <input type="hidden" name="id" value="<#if (role.roleCode)??>${role.roleCode!''}</#if>"> <input type="hidden" id="user" name="user" value="${user!''}"> <input type="hidden" id="menu" name="menu" value="${menu!''}">
                <dl class="nowrap">
                    <div style="float: left; height: 25px; width: 300px;">
                        <label style="width: 60px"><@label key="roleCode.C,colon">角色编码：</@label></label> <input readonly="readonly" class="required" name="roleCode" value="<#if (role.roleCode)??>${role.roleCode!''}</#if>" size="20" type="text" maxlength="40" readonly="readonly" />
                    </div>
                    <div style="float: left; height: 25px; width: 300px;">
                        <label style="width: 60px"><@label key="roleText.C,colon">角色描述：</@label></label> <input readonly="readonly" class="required" name="roleText" value="<#if (role.roleText)??>${role.roleText!''}</#if>" size="20" type="text" maxlength="60" />
                    </div>
                </dl>
                <dl class="nowrap">
                    <dd>
                        <div class="tabs" currentIndex="0" eventType="click" style="width: 615px">
                            <div class="tabsHeader">
                                <div class="tabsHeaderContent">
                                    <ul>
                                        <li><a href="javascript:;"><span><@label key="detail.C">详情</@label></span> </a>
                                        </li>
                                        <li><a href="javascript:;"><span><@label key="authority.C">权限</@label></span> </a>
                                        </li>
                                        <li><a href="javascript:;"><span><@label key="user.C">用户</@label></span> </a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                            <div class="tabsContent">
                                <div style="height: 243px">
                                    <div style="float: left;">
                                        <label style="width: 55px"><@label key="memo.C,colon">备注：</@label></label>
                                        <textarea style="height: 120px; width: 520px;" readonly="readonly" name="memo" cols="68" rows="8"><#if (role.memo)??>${role.memo!''}</#if></textarea>
                                    </div>
                                    <p>
                                        <label style="width: 60px">&nbsp;</label> <label><input disabled type="checkbox" name="lockFlag" value="1"<#if (role.lockFlag)?? && (role.lockFlag == 1)> checked="true"</#if>><@label key="lock.C">锁定</@label></label>
                                    </p>
                                    <p>
                                        <label style="width: 60px">&nbsp;</label> <label><input disabled type="checkbox" name="systemFlag" value="1"<#if (role.systemFlag)?? && (role.systemFlag == 1)> checked="true"</#if>><@label key="systemFlag.C">系统内置角色</@label></label>
                                    </p>
                                </div>
                                <div>
                                    <div id="menuTree" style="height: 243px;overflow: auto;">
                                        <ul id="tree" class="tree treeFolder treeCheck expand">
                                            <#list menus as tree>
                                            <li><a tvalue="${tree.menuCode}" tname="${tree.menuText}"<#if (tree.isChecked)?? && (tree.isChecked == 1)> checked="true"</#if>>${tree.menuText}</a> <#if tree.children?? &&tree.children?size gt 0>
                                                <ul><@bpTree children=tree.children />
                                                </ul> </#if> </#list>
                                        </ul>
                                    </div>
                                </div>
                                <div style="height: 243px">
                                    <table class="table border" width="100%" style="height: 243px">
                                        <thead>
                                            <tr>
                                                <th width="100"><@label key="userCode.C">用户编号</@label></th>
                                                <th width="100"><@label key="userText.C">用户名称</@label></th>
                                            </tr>
                                        </thead>
                                        <tbody id="usertbody">
                                            <#if users??><#if (users?size>0)> <#list users as user>
                                            <tr id="user_${user.userCode!''}" target="user_code" rel="${user.userCode!''}">
                                                <td width="100">${user.userCode!''}</td>
                                                <td width="100">${user.userText!''}</td>
                                            </tr>
                                            </#list> <#else>
                                            <tr id="noUser" target="user_id">
                                                <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
                                            </tr>
                                            </#if> <#else>
                                            <tr id="noUser" target="user_id">
                                                <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
                                            </tr>
                                            </#if>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                            <div class="tabsFooter">
                                <div class="tabsFooterContent"></div>
                            </div>
                        </div>
                    </dd>
                </dl>
            </fieldset>
        </div>
        <#if (role.roleCode)??> <#assign createInfo=role/> <#include "/common/createInfo.html"> </#if>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="button" class="close"><@label key="close.B">关闭</@label></button>
                        </div>
                    </div></li>
            </ul>
        </div>
    </div>
</form>
<#macro bpTree children> <#if children?? && children?size gt 0> <#list children as child>
<li><a tvalue="${child.menuCode}" tname="${child.menuText}"<#if (child.isChecked)?? && (child.isChecked == 1)> checked="true"</#if>>${child.menuText}</a> <#if child.children?? &&child.children?size gt 0>
    <ul><@bpTree children=child.children />
    </ul> </#if> </#list> </#if> </#macro>